#include <stdio.h>
int main()
{
	double sum = 0.0;
	int z = 1;
	for (int i = 1; i <= 100; i++)
	{
		sum += 1.0 * z / i;
		z = -z;
	}
	printf("%lf", sum);
	return 0;
}